package com.tomorrowbbs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * 用户消息对象 user_message
 * 
 * @author zjz
 * @date 2024-11-09
 */
public class UserMessage
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long messageId;

    /** 接收人用户ID */
    private String receivedUserId;

    /** 文章ID */
    private String articleId;

    /** 文章标题 */
    private String articleTitle;

    /** 评论ID */
    private Long commentId;

    /** 发送人用户ID */
    private String sendUserId;

    /** 发送人昵称 */
    private String sendNickName;

    /** 0:系统消息 1:评论 2:文章点赞  3:评论点赞 4:附件下载 */
    private Integer messageType;

    /** 消息内容 */
    private String messageContent;

    /** 1:未读 2:已读 */
    private Integer status;

    private Date createTime;

    public void setMessageId(Long messageId) 
    {
        this.messageId = messageId;
    }

    public Long getMessageId() 
    {
        return messageId;
    }
    public void setReceivedUserId(String receivedUserId) 
    {
        this.receivedUserId = receivedUserId;
    }

    public String getReceivedUserId() 
    {
        return receivedUserId;
    }
    public void setArticleId(String articleId) 
    {
        this.articleId = articleId;
    }

    public String getArticleId() 
    {
        return articleId;
    }
    public void setArticleTitle(String articleTitle) 
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setSendUserId(String sendUserId) 
    {
        this.sendUserId = sendUserId;
    }

    public String getSendUserId() 
    {
        return sendUserId;
    }
    public void setSendNickName(String sendNickName) 
    {
        this.sendNickName = sendNickName;
    }

    public String getSendNickName() 
    {
        return sendNickName;
    }
    public void setMessageType(Integer messageType)
    {
        this.messageType = messageType;
    }

    public Integer getMessageType()
    {
        return messageType;
    }
    public void setMessageContent(String messageContent) 
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent() 
    {
        return messageContent;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("receivedUserId", getReceivedUserId())
            .append("articleId", getArticleId())
            .append("articleTitle", getArticleTitle())
            .append("commentId", getCommentId())
            .append("sendUserId", getSendUserId())
            .append("sendNickName", getSendNickName())
            .append("messageType", getMessageType())
            .append("messageContent", getMessageContent())
            .append("status", getStatus())
            .toString();
    }
}
